{layout name="layout" /}
<nav class="breadcrumb">
    <i class="Hui-iconfont">&#xe67f;</i>
    <a href="{:url('admin/index/index')}"> 首页</a>
    <span class="c-gray en">&gt;</span>
    <a href="{:url('admin/template_detail/index')}">内容模板管理</a>
    <span class="c-gray en">&gt;</span>
    <a href="javascript:void(0);">{$data.id ? '新增' : '修改'}模板</a>
    <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px"
        href="javascript:location.replace(location.href);" title="刷新">
        <i class="Hui-iconfont">&#xe68f;</i>
    </a>
</nav>

<div class="Hui-article">
    <article class="cl pd-20">
        <form action="{:url('template_detail/save',['id'=>$data.id])}" method="post" class="form form-horizontal"
            id="form-admin-article">
            <input type="hidden" name="id" id="id" value="{$data.id}">
            <div class="row cl">
                <label class="form-label col-xs-4 col-sm-2">
                    <span class="c-red">*</span>标题:</label>
                <div class="formControls col-xs-8 col-sm-8">
                    <input type="text" class="input-text" value="{$data.title}" placeholder="请填写标题" id="title"
                        name="title">
                </div>
                <div class="col-3"> </div>
            </div>

            <div class="row cl">
                <label class="form-label col-xs-4 col-sm-2">
                    排序：</label>
                <div class="formControls col-xs-4 col-sm-2">
                    <input type="number" class="input-text" value="{$data.sort}" id="sort" name="sort" max="9999"
                        style="width: 200px;">
                </div>
            </div>
            <div class="row cl">
                <label class="form-label col-xs-4 col-sm-2">
                    模板内容:</label>
                <div class="col-3"> </div>
            </div>
            <div class="row cl">
                <div class="formControls col-xs-10 col-sm-10 col-xs-offset-2 col-sm-offset-1">
                    <textarea name="content" id="content" cols="" rows="" class="textarea"
                        style="height: 400px;" placeholder="" dragonfly="true">{$data.content}</textarea>
                </div>
                <div class="col-3"> </div>
            </div>
            <div class="row cl">
                <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
                    <button type="submit" class="btn btn-success radius" id="admin-powers-save"
                        name="">确&nbsp;定</button>
                    <button type="button" class="btn btn-default radius" onclick="window.history.back();"
                        style="margin-left:20px;">取&nbsp;消</button>
                </div>
            </div>
        </form>
    </article>
</div>